<?php
$eid = $_POST["idEnc"];

include '../config/config.php';

$con = mysql_connect($host,$user,$passw);
mysql_select_db($dbname, $con);

$query = "DELETE FROM encargo WHERE id=".$eid;

mysql_query($query, $con) or die(mysql_error());